package demo.methods;

public class DemoMethod {
	static int staticCount;
	int counter = 0;
	public DemoMethod()
	{
		staticCount++;
		counter++;
	}
	
	public static void printValue(int counter)
	{
		System.out.println("\n Bien tinh: " + staticCount);
		System.out.println("Bien cuc bo: " + counter);
	}
	
	public void printStatiCount()
	{
		System.out.println("bien tinh: " + staticCount);
	}
	
	public void printCount()
	{
		System.out.println("bien cuc bo: " + counter);
	}
	
	public static void lengthMethod(String name, int... value)
	{
		System.out.println("\n \nLength method");
		for (int a: value)
		{
			System.out.println(name + ": " + a);
		}
		
	}
}
